<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>    
    <title><?php echo $title . ' &raquo; ' . $search_keywords; ?></title>
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
    <base href="<?php echo $base; ?>" />
    <?php if ($icon) { ?>
        <link href="<?php echo $icon; ?>" rel="icon" />
    <?php } ?>      
    
    <link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/css/style.css" />
    <link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/css/thickbox.css" />   
    <link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/css/jquery.simplemodal.css" />    

    <script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/jquery.js"></script>              
    <script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/jquery.simplemodal.js"></script> 
    <script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/simplemodal.formstyle.js"></script>
    <script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/jquery.thickbox.compressed.js"></script> 
    <script type="text/javascript"><!--     
        //Search
        var search_hint = 'Søg';
        jQuery(document).ready(function(){ 
            search_url = jQuery('#searchForm1').attr('action');
            /*
            jQuery('#search_value').keydown(function(e) {                
                if (e.keyCode == 13) {
                    searchProduct();
                }
            });
            
            jQuery('#search-submit').click(function(e) {         
                searchProduct();  
            });             
            */
            
            // Hack because form can not submit with url in action
            jQuery('#searchForm1').submit(function(event){
                /*
                event.preventDefault();

                //url = search_url + '&keyword=' + jQuery('#search_value').val();
                url = search_url;
                if(url.indexOf('?') > 0){
                    url += '&keyword=' + jQuery('#search_value').val();
                }
                else{
                    url += '?keyword=' + jQuery('#search_value').val();
                }  
                            
                window.location = url
                */

                jQuery('#search_overlay').show();
            });

            // Tooltip
            $(".tooltips_3").hover(
                function () {
                    $(this).contents("div:last-child").css({ display:"block" });
                },
                function () {
                    $(this).contents("div:last-child").css({ display:"none" });
                }
            );

            $(".tooltips_3").mousemove(function (e) {
                var mousex = e.pageX - 200;
                var mousey = e.pageY - 60;
                $(this).contents("div:last-child").css({  top:mousey, left:mousex });
            });

            // Search
            jQuery('#search').keydown(function (e) {
                if (e.keyCode == 13) {
                    searchProduct1();
                }
            });
            jQuery('#search').focus(function (e) {
                if (jQuery(this).val() == search_hint) {
                    jQuery(this).val('');
                }
            });
            jQuery('#search').blur(function (e) {
                if (jQuery(this).val() == '') {
                    jQuery(this).val(search_hint);
                }
            });
            jQuery('#search_button').click(function (e) {
                //e.preventDefault();

                searchProduct1();
            });
        });
                 
        function searchProduct() {
            //url = search_url + '&keyword=' + jQuery('#search_value').val();
            /*
            url = search_url;
            if(url.indexOf('?') > 0){
                url += '&keyword=' + jQuery('#search_value').val();
            }
            else{
                url += '?keyword=' + jQuery('#search_value').val();
            }    
             
            window.location = url;
            */

            jQuery('#searchForm1').submit();
        }

        function searchProduct1() {
            jQuery('#searchForm1').submit();
        }
    //-->
</script>
</head>
<body>
<div id="fb-root"></div>
<script>
    (function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/da_DK/all.js#xfbml=1";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
</script>

<div id="page_margins">
    <div id="page">
        <div id="page_content">
            <div id="header">
                <p class="float_left p10t"><a href="<?php echo $home; ?>"><img src="catalog/view/theme/<?php echo $template; ?>/images/logo.png"/></a></p>
				<!-- p class="float_right" style="margin:10px 0 0 0;"><img src="catalog/view/theme/<?php echo $template; ?>/images/forbrugsforeningen-logo.png" alt="" /></p -->
                <p id="cart_info" class="box_shopping1 float_right">
                    <span class="text_shopping"><a href="<?php echo $checkout; ?>">Indkøbskurven</a></span><br />
                    Du har <?php echo $count_products; ?> vare(r) <?php echo $subtotals; ?>
                </p>
                <p class="float_right" style="margin:10px 20px 0 0;"><a href="http://www.emaerket.dk/e-maerket/havhokeren.dk" target="_blank"><img src="catalog/view/theme/<?php echo $template; ?>/images/elogo_head.png" alt="" /></a></p>				
                <p class="cb"></p>
            </div>
            <?php if(1==0){ ?>
                <div id="content_top">
                    <div id="menu">
                        <ul id="proNav">
                            <li class="menu-item active"><a href="<?php echo $home; ?>">Forside</a></li>
                            <li class="menu-item"><a href="<?php echo $omos; ?>">Om Havhøkeren</a></li>
                            <!-- li class="menu-item"><a href="<?php echo $product; ?>">Produkter</a></li -->
							<li class="menu-item"><a href="<?php echo $manufacturer; ?>">Brands</a></li>
                            <li class="menu-item"><a href="<?php echo $handels; ?>">Handelsbetingelser</a></li>
                            <li class="menu-item"><a href="<?php echo $contact; ?>">Kontakt os</a></li>
                        </ul>
                    </div>
                    <div class="slideshow">
                        <?php if(isset($use_flash_banner)){ ?>
                            <!-- this div will be overwritten by SWF object -->
                            <div id="havhShow">
                                <p>For at se dette objekt skal du have Flash Player 9 + support!</p>
                                <a href="http://www.adobe.com/go/getflashplayer">
                                    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
                                </a>
                            </div>
                        <?php }else{ ?>
                            <!-- start nivo-slider slideshow -->
                            <div id="sliderBox">
                                <div id="slideShow">
                                    <?php foreach($slideshow_data as $data_item){ ?>
                                        <a href="<?php echo $data_item['link'] ?>"><img src="<?php echo $data_item['image']?>" alt="" /></a>
                                    <?php } ?>
                                </div>
                            </div>
                        <?php } ?>
                    </div>
                    <div class="clear"></div>
                    <div class="rabat-block">
                        <a class="rabat-btn thickbox" href="#TB_inline?height=330&width=810&inlineId=rabatContent"><img src="catalog/view/theme/<?php echo $template; ?>/images/try-her-btn.gif" alt="" /></a>
                        <div class="rabat-txt"><span>5</span>% rabat på alle onlinekøb!</div>
                    </div>
                </div>
            <?php }else{ ?>
                <div>
                    <div id="nav_main">
                        <ul id="topNav">
                            <li id="MenuHome" class="current"><a href="<?php echo $home; ?>">Forside</a></li>
                            <li id="MenuOmos"><a href="<?php echo $omos; ?>">Om Havhøkeren</a></li>
                            <li id="MenuProduct">
                                <!-- a href="<?php echo $product; ?>">Produkter </a -->
								<a href="<?php echo $manufacturer; ?>">Brands</a>
                                <div class="sub">
                                    <?php $max = count($categories) - 1; ?>
                                    <ul>
                                        <?php for($i = 0; $i <= 6; $i++){ ?>
                                        <li>
                                            <a href="<?php echo $categories[$i]['href']; ?>"><?php echo $categories[$i]['name']; ?></a>
                                        </li>
                                        <?php } ?>
                                    </ul>
                                    <ul>
                                        <?php for($i = 7; $i <= $max; $i++){ ?>
                                        <li>
                                            <a href="<?php echo $categories[$i]['href']; ?>"><?php echo $categories[$i]['name']; ?></a>
                                        </li>
                                        <?php } ?>
                                    </ul>
                                </div>
                            </li>
                            <!-- li><a href="<?php echo $blog; ?>" target="_blank">Blog</a></li -->
                            <li id="MenuHandel"><a href="<?php echo $handels; ?>">Handelsbetingelser</a></li>
                            <!-- li id="MenuNews"><a href="<?php echo $news; ?>">Nyheder</a></li -->
                            <li id="MenuContact"><a href="<?php echo $contact; ?>">Kontakt os </a></li>
                        </ul>
                    </div>
                    <div class="box_search float_right">
                        <div class="float_left p10r p2t">
                            <div style="float:left;" class="tooltips_3">
                                <img src="catalog/view/theme/<?php echo $template; ?>/images/icon_info.png" width="19" height="19"/>

                                <div id='tool_3' class="tooltip-style1_3"><?php echo $search_hint; ?></div>
                            </div>
                        </div>
                        <form id="searchForm" method="post" action="<?php echo $search_url; ?>">
                            <input id="search" class="search_txt" name="keyword" value="<?php echo $keyword ? $keyword : 'Søg'; // efter id eller produktnavn'; ?>" title="Søg"/><input id="search_button" class="p2t" name="button" type="image" src="catalog/view/theme/<?php echo $template; ?>/images/icon_search.png"/>
                        </form>
                    </div>					
                </div>                        
                <div class="rabat-block">
                    <a class="rabat-btn thickbox" href="#TB_inline?height=330&width=810&inlineId=rabatContent"><img src="catalog/view/theme/<?php echo $template; ?>/images/try-her-btn.gif" alt=""/></a>

                    <div class="rabat-txt"><span>5</span>% rabat på alle onlinekøb!</div>
                </div>
            <?php } ?>
            <!-- End header -->            